package com.web.exiaodao.remote.service;

import com.web.exiaodao.business.entity.FanliOrder;
import com.web.exiaodao.remote.vo.FanliOrderVo;
import com.web.webstart.base.exception.BusinessException;
import com.web.webstart.base.service.ApiBaseService;
import com.web.webstart.base.util.result.XaResult;


public interface ApiFanliOrderService extends ApiBaseService<FanliOrderVo, FanliOrder> {
    /**
     * 根据临时返利订单生产返利对象
     *
     * @return
     * @throws BusinessException
     */
    public XaResult<FanliOrderVo> createFanliOrder(FanliOrderVo.FanliTemporder temporder) throws BusinessException;

    /**
     * orderNo:订单编号
     * fanliStatus: 1:可以正常返利 2:返利订单未完成 3:未找到返利订单
     * failFanliInfo:说明返利完成和未完成的原因
     * failExpectedFanliTime:返利未完成，预计返利日期yyyy-mm-dd
     * @throws BusinessException
     */
    public XaResult<FanliOrderVo> fanliOrderSucess(String orderNo, String fanliStatus, String failFanliInfo, String failExpectedFanliTime) throws Exception;
}
